package com.coscon.model.auth;


import java.util.ArrayList;
import java.util.List;

/**
 * 左侧的导航菜单
 */
public class LeftMenu implements java.io.Serializable{

	/** 
	* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么) 
	*/ 
	private static final long serialVersionUID = 1L;
	
	private String id;
	private String pId;
	private String text;
	private String icon = "fa fa-laptop";
	private String url;
	private String targetType = "iframe-tab";
	private Integer openType = 0;//0正常系统Tab内页,1新窗口方式,2对话框方式
	private Integer tip = 0;//默认不提示
	private String countNumStyle = "label-success";//统计数字的样式名称
	private String urlType = "iframe"; //固定值

	private boolean open =false;//默认是否展示


	public LeftMenu(){

	}

	public LeftMenu(String id,String text,String icon,String url,Integer openType,boolean open){
		this.id = id;
		this.text = text;
		this.icon = icon;
		this.url = url;
		this.openType = openType;
		if(this.openType==null){
			this.openType = 0;
		}
		this.setOpen(open);
	}
	
	//子节点
	private List<LeftMenu> children = new ArrayList<LeftMenu>();


	public boolean isOpen() {
		return open;
	}

	public void setOpen(boolean open) {
		this.open = open;
	}

	@Override
	public String toString() {
		return "LeftMenu [id=" + id + ", text=" + text + ", icon=" + icon + ", url=" + url + ", targetType="
				+ targetType + "]";
	}

	public String getUrlType() {
		return urlType;
	}

	public void setUrlType(String urlType) {
		this.urlType = urlType;
	}

	public Integer getTip() {
		return tip;
	}

	public void setTip(Integer tip) {
		this.tip = tip;
	}

	public String getpId() {
		return pId;
	}


	public void setpId(String pId) {
		this.pId = pId;
	}


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getText() {
		return text;
	}


	public void setText(String text) {
		this.text = text;
	}


	public String getIcon() {
		return icon;
	}


	public void setIcon(String icon) {
		this.icon = icon;
	}


	public String getUrl() {
		return url;
	}


	public void setUrl(String url) {
		this.url = url;
	}


	public String getTargetType() {
		return targetType;
	}


	public void setTargetType(String targetType) {
		this.targetType = targetType;
	}


	public List<LeftMenu> getChildren() {
		return children;
	}


	public void setChildren(List<LeftMenu> children) {
		this.children = children;
	}


	public Integer getOpenType() {
		return openType;
	}

	public void setOpenType(Integer openType) {
		this.openType = openType;
	}


	public String getCountNumStyle() {
		return countNumStyle;
	}

	public void setCountNumStyle(String countNumStyle) {
		this.countNumStyle = countNumStyle;
	}
}
